home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-05-22 | 1.4 KB | 62 lines | [TEXT/MPCC] |
- //
- // File: MacApplication.h
- //
- // Contains: Functions that could be overridden in a specific application.
- //
- // Written by: Tim Monroe
- // Based (heavily!) on the MovieShell code written by Apple DTS
- //
- // Copyright: © 1994-1996 by Apple Computer, Inc., all rights reserved.
- //
- // Change History (most recent first):
- //
- // <2> 11/27/96 rtm conversion to personal coding style
- // <1> 12/21/94 khs first file
- //
- //
-
- #pragma once
-
- #include "Sound.h"
- #include "SoundComponents.h"
- #include "SoundSprocket.h"
-
- // application-specific constants
- #define kMaxNumSourcesPerNode 2
-
- // for menus
-
- enum eAppMenus {
- mTesting = 131
- };
-
- enum eTestingMenu {
- iTest1 = 1,
- iTest2,
- iTest3,
- iTest4,
- iTest5,
- iTest6,
- iTest7,
- iTest8,
- iTest9,
- iTest10
- };
-
- //////////
- // structures
- //////////
-
- // application-specific window data
-
- typedef struct {
- SSpListenerReference fListener; // the single listener
- SSpSourceReference fSources[kMaxNumSourcesPerNode]; // a node's sound sources
- SndChannelPtr fChannels[kMaxNumSourcesPerNode]; // a sound channel for each sound source
- SndListHandle fResources[kMaxNumSourcesPerNode]; // the 'snd ' resources for the sounds
- Boolean fMustUpdateOrient; // do we need to update the listener's orientation?
- } ApplicationDataRecord, *ApplicationDataPtr, **ApplicationDataHdl;
-
- // the function prototypes are in the file MacFramework.h
-
-